package com.czxy.service;

import com.czxy.mapper.SpecMapper;
import com.czxy.pojo.Spec;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * @author 张青卯
 */
@Service
public class SpecService {

    private final SpecMapper specMapper;

    @Autowired
    public SpecService(SpecMapper specMapper) {
        this.specMapper = specMapper;
    }

    public List<Spec> specifications(Integer catid){
        return specMapper.findSpecificationByCategoryId(catid);
    }
}
